package com.zhitongyun.devlop.db.migration;

import io.realm.DynamicRealm;
import io.realm.RealmMigration;
import io.realm.RealmSchema;

/**
 * Created by huanglei on 6/15/16.
 */
public class DBMainMigration implements RealmMigration {

    @Override
    public void migrate(DynamicRealm realm, long oldVersion, long newVersion) {
        RealmSchema schema = realm.getSchema();
        if (oldVersion == 0) {

            //处理版本更新
            oldVersion++;
        }
    }
}
